package com.qiwenshare.file.constant;

public enum ApproveStatusEnum {
    SUCCESS(1, "成功"),
    REJECT(2, "驳回"),
    PROCESSING(3, "审批中")
    ;


    private int status;
    private String desc;
    ApproveStatusEnum(int status, String desc) {
        this.status = status;
        this.desc = desc;
    }

    public static ApproveStatusEnum getEnum(int status) {
        for (ApproveStatusEnum ele : ApproveStatusEnum.values()) {
            if (ele.getStatus() == status) {
                return ele;
            }
        }
        return null;
    }

    public int getStatus() {
        return status;
    }

    public String getDesc() {
        return desc;
    }
}
